home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / raytrace / rt800 / chem2scn.bat < prev    next >
Encoding:
DOS Batch File  |  1992-08-11  |  315 b   |  16 lines

  1. @echo off
  2. set name=%0
  3. if "%1" == "" goto params
  4. if not "%2" == "" goto params
  5. if not exist %1 goto error1
  6. sed "1,$s/[(),]/ /g" <%1|sort|awk -f chem2scn.awk|sort
  7. goto end
  8. :params
  9. echo %name%: usage is "%name% {chem_file} [>scn_file]"
  10. goto end
  11. :error1
  12. echo %name%: %1 not found
  13. goto end
  14. :end
  15. set name=
  16.